﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpcSelfHost.WebApi.common
{
    interface IFileCommon
    {
        //新增文件
         void addFile(String path, String val);

       
        /// <summary>
        /// 覆盖形式生成文件
        /// </summary>
        /// <param name="path">完整地址</param>
        /// <param name="val">插入内容</param>
        void createFile(String path, String val);

        List<string> readDirFiles(String path);

        /// <summary>
        /// 删除文件
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        bool delFile(String path);

        //读取文件
        String readFile(String path);

    }
}
